package com.qa.dom.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 评价表
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
public class Evaluation extends Model<Evaluation> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 上课时长
     */
	@TableField("course_time")
	private Float courseTime;
    /**
     * 分数
     */
	private Integer score;
    /**
     * 内容
     */
	private String content;
    /**
     * 评价人
     */
	private Integer evaluater;

	/**
	 * 评论创建时间
	 * @returncr
	 */
	private String createDateCh;


	/**
	 * 评论创建时间
	 * @return
	 */
	@TableField("create_time")
	private Date createDate;

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateDateCh() {
		return createDateCh;
	}

	public void setCreateDateCh(String createDateCh) {
		this.createDateCh = createDateCh;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Float getCourseTime() {
		return courseTime;
	}

	public void setCourseTime(Float courseTime) {
		this.courseTime = courseTime;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getEvaluater() {
		return evaluater;
	}

	public void setEvaluater(Integer evaluater) {
		this.evaluater = evaluater;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Evaluation{" +
			", id=" + id +
			", userId=" + userId +
			", courseTime=" + courseTime +
			", score=" + score +
			", content=" + content +
			", evaluater=" + evaluater +
			"}";
	}
}
